package com.yanyilu.basing.mapper;

import com.yanyilu.basing.entity.AdminUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Sxx
 * @since 2020-10-27
 */
public interface AdminUserMapper extends BaseMapper<AdminUser> {

    List<AdminUser> selectByAdminUserName(@Param("adminUserName") String adminUserName);

    List<AdminUser> selectByAllAdminUser();

    AdminUser selectByUserName(@Param("adminUserName")String adminUserName);

    List<Map<String,Object>> selectByAllTableContent(@Param("tableName")String tableName);

    void deleteByAllId(@Param("tableName")String tableName,@Param("tableNameIdWord")String tableNameIdWord,@Param("tableNameId")Integer tableNameId);
}
